package com.woniuxy.hotel.room.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.hotel.room.pojo.Evaluate;
import com.woniuxy.hotel.room.service.EvaluateService;



@Controller
@RequestMapping("/evaluate")
public class EvaluateController {
	@Autowired
	private EvaluateService evaluateServiceImp;
	
	/*
	 * 
	 * 查看这个酒店评价*/
	@RequestMapping("/findEvaluate")
	@ResponseBody
	public List<Evaluate> findEvaluate(int hotelid){
		return evaluateServiceImp.findEvaluate(hotelid);
		
	}
	
}
